package com.jun.serviceimpl;

import com.jun.entity.Admin;
import com.jun.mapper.AdminMapper;
import com.jun.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

@Service
@Transactional
public class AdminServiceImpl implements AdminService {
    @Autowired
    AdminMapper adminMapper;
    @Override
    public Admin getUserById(String id) {
        return adminMapper.getUserById(id);
    }

    @Override
    public Admin getUserByTellPhone(String tellphone) {
        return adminMapper.getUserByTellPhone(tellphone);
    }

    @Override
    public int updateAdminPassWord(Map<String, Object> map) {
        return adminMapper.updateAdminPassWord(map);
    }

}
